<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class SwtUserWalletAddress extends Model
{
    use HasFactory;
    use SoftDeletes;
    use HasDateTimeFormatter;

    protected $table = 'swt_user_wallet_address';

    protected $hidden = ['deleted_at', 'address_key', 'private_key', 'password'];

    protected $guarded = [];

    public function chain()
    {
        return $this->hasOne(SwtChains::class, 'chain_index', 'chain_index');
    }
}
